package cn.yzgy.yzgyoa.common.constant;

/**
 * 系统缓存名定义
 *
 * @author Yqsen
 * @since 2019-10-11 10:40:22
 */
public class YzCacheName {
    /**
     * Key生成器名字
     */
    public static final String GENERATOR_NAME = "YzCacheKeyGenerator";

    /**
     * 缓存名前缀
     */
    private static final String CACHE_PREFIX = "YzCache:";

    /**
     * 菜单缓存
     */
    public static final String MENU_CACHE_NAME = CACHE_PREFIX + "Menu";

    /**
     * 用户详细信息缓存
     */
    public static final String USER_DETAIL_INFO_CACHE_NAME = CACHE_PREFIX + "UserDetailInfo";

    /**
     * 字典详细信息缓存
     */
    public static final String SYS_DICT_CACHE_NAME = CACHE_PREFIX + "Dict";

    /**
     * shiro框架生成权限相关缓存
     */
    public static final String SHIRO_AUTO_PERMISSION_CACHE_NAME = "shiro:cache:cn.yzgy.yzgyoa.common.shiro.AuthRealm.authorizationCache:";

}
